//
//  NetRequest+Asset.h
//  AppleMarket
//
//  Created by yangy on 29/10/2018.
//  Copyright © 2018 szgsy. All rights reserved.
//

#import "NetRequest.h"

NS_ASSUME_NONNULL_BEGIN

@interface NetRequest (Asset)

/**
 获取币币账户资产
 */
+ (void) request_UserAssetListWithCompleteHandler:(void (^)(id responseObj)) completeHandler
                                             fail:(void (^)(NSError *error)) failHandler;
/**
 获取充值记录
 */
+ (void) request_GetGetUserDepositListWithCeId:(NSInteger) currencyID
                                     pageIndex:(NSInteger) pageIndex
                               completeHandler:(void (^)(id responseObj)) completeHandler
                                          fail:(void (^)(NSError *error)) failHandler;

/**
 获取用户提现列表

 @param currencyID 币种ID
 @param pageIndex 页数
 */
+ (void) request_GetUserWithdrawtListWithCeId:(NSInteger) currencyID
                                     pageIndex:(NSInteger) pageIndex
                               completeHandler:(void (^)(id responseObj)) completeHandler
                                          fail:(void (^)(NSError *error)) failHandler;

/**
 获取提现地址列表
 */
+ (void) request_GetUserWithdrawAccountListWithCeId:(NSInteger) currencyID
                               completeHandler:(void (^)(id responseObj)) completeHandler
                                          fail:(void (^)(NSError *error)) failHandler;
/**
  添加提现地址

 @param code 验证码
 @param CurrencyId 币种ID
 @param BlockAddr 提现地址
 @param memo 备注
 @param safePwd 资金密码
 */
+ (void) request_DoAddUserWithdrawWithCode:(NSString*) code
                                      ceId:(NSInteger) CurrencyId
                                      addr:(NSString*) BlockAddr
                                      memo:(NSString*) memo
                                       pwd:(NSString*) safePwd
                           completeHandler:(void (^)(id responseObj)) completeHandler
                                      fail:(void (^)(NSError *error)) failHandler;

/**
 提现

 @param code 验证码 
 @param CurrencyId 币种Id
 @param BlockAddr 提现地址
 @param amount 提现数量
 @param safePwd 资金密码
 */
+ (void) request_DoWithdrawWithCode:(NSString*) code
                         googleCode:(NSString*) googleCode
                               ceId:(NSInteger) CurrencyId
                               addr:(NSString*) BlockAddr
                             amount:(NSString*) amount
                                pwd:(NSString*) safePwd
                    completeHandler:(void (^)(id responseObj)) completeHandler
                               fail:(void (^)(NSError *error)) failHandler;

/**
 取消提现
 */
+ (void) request_DoCancelWithdrawWithId:(NSInteger) Id
                          completeHandler:(void (^)(id responseObj)) completeHandler
                                     fail:(void (^)(NSError *error)) failHandler;

/**
 站内互转
 @param vCode 手机/邮箱 验证码
 @param iCode 图形验证码
 @param key  图形验证码Key
 @param account 账号
 @param pwd 资金密码
 @param amount 资金金额
 @param unit 货币符号，支持BMR等其他货币类型
 */
+ (void) request_DoMutualTransferWithVerifyCode:(NSString*) vCode
                                        ImgCode:(NSString*) iCode
                                            key:(NSString*) key
                                        account:(NSString*) account
                                            pwd:(NSString*) pwd
                                         amount:(NSString*) amount
                                           unit:(NSString*) unit
                        completeHandler:(void (^)(id responseObj)) completeHandler
                                   fail:(void (^)(NSError *error)) failHandler;
/**
 划转记录
 */
+ (void) request_QueryTransferAssetWithCeId:(NSInteger) currencyID
                                  pageIndex:(NSInteger) pageIndex
                            completeHandler:(void (^)(id responseObj)) completeHandler
                                       fail:(void (^)(NSError *error)) failHandler;
/**
 取消互转
 */
+ (void) request_DoCancelMutualTransferWithId:(NSInteger) Id
                              completeHandler:(void (^)(id responseObj)) completeHandler
                                         fail:(void (^)(NSError *error)) failHandler;

/**
 删除提现地址
 */
+ (void) request_DoDeleteUserWithdrawAccountWithId:(NSInteger) Id
                              completeHandler:(void (^)(id responseObj)) completeHandler
                                         fail:(void (^)(NSError *error)) failHandler;

/**
 删除提现地址
 */
+ (void) request_GetUserAssetRecordListWithId:(NSInteger) ceId
                                       typeId:(NSInteger) typeId
                                    pageIndex:(NSInteger) pageIndx
                                     pageSize:(NSInteger) size
                                   completeHandler:(void (^)(id responseObj)) completeHandler
                                              fail:(void (^)(NSError *error)) failHandler;
@end

NS_ASSUME_NONNULL_END
